import axios from '@/libs/api.request'
// 减免税列表
export const getReliefs = (data) => {
    return axios.request({
        url: '/customs/tax/reliefs/list',
        method: 'post',
        data
    })
}
// 申报

export const declareReliefs = (ids) => {
    return axios.request({
        url: '/customs/tax/reliefs/declare',
        method: 'get',
        params: {
            ids
        }
    })
}

// 删除
export const delReliefs = (ids) => {
    return axios.request({
        url: '/customs/tax/reliefs/delete',
        method: 'get',
        params: {
            ids
        }
    })
}
// 减免税更新增加
export const updateReliefs = (data) => {
    return axios.request({
        url: '/customs/tax/reliefs/update',
        method: 'post',
        data
    })
}
// 查询详情
export const getReliefsDetail = (id) => {
    return axios.request({
        url: '/customs/tax/reliefs/detail',
        method: 'get',
        params: {
            id
        }
    })
}
